package com.zkflzl.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zkflzl.store.common.BaseResponse;
import com.zkflzl.store.model.dto.stock.StockAddRequest;
import com.zkflzl.store.model.dto.stock.StockListRequest;
import com.zkflzl.store.model.dto.stock.StockOutRequest;
import com.zkflzl.store.model.entity.Stock;

import javax.servlet.http.HttpServletRequest;

/**
* @author 21582
* @description 针对表【tb_stock(库存表)】的数据库操作Service
* @createDate 2024-03-20 09:40:30
*/
public interface StockService extends IService<Stock> {

    BaseResponse inStock(StockAddRequest stockAddRequest, HttpServletRequest request);

    BaseResponse outStock(StockOutRequest stockOutRequest, HttpServletRequest request);

    BaseResponse delStock(String stockId, HttpServletRequest request);

    BaseResponse selStock(StockListRequest stockListRequest, HttpServletRequest request);

    BaseResponse updateStock(Long id, Long quantity, HttpServletRequest request);
}
